package com.youthburin.rmp.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.youthburin.base.domain.BaseVO;

/**
 * The persistent class for the rmp_dict database table.
 * 
 */
@Entity
@Table(name = "rmp_dict")
public class RmpDict extends BaseVO implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private RmpDictPK id;

	@Column(name = "NAME", length = 64)
	private String name;
	@Transient
	private String code;

	// bi-directional many-to-one association to RmpDictType
	@ManyToOne
	@JoinColumn(name = "TYPE_CODE", nullable = false, insertable = false, updatable = false)
	private RmpDictType rmpDictType;

	public RmpDict() {
	}

	public RmpDictPK getId() {
		return this.id;
	}

	public void setId(RmpDictPK id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public RmpDictType getRmpDictType() {
		return this.rmpDictType;
	}

	public void setRmpDictType(RmpDictType rmpDictType) {
		this.rmpDictType = rmpDictType;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

}